<?php

namespace App\Http\Requests\System;

use App\Http\Requests\BaseRequest;
use Illuminate\Foundation\Http\FormRequest;

class UserTask extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'post_id' => 'required',
            'user_id' => 'required',
            'classes_id' => 'required',
            'workspace_id' => 'required',
        ];
    }
    public function messages(){
        return [
            'post_id.required' => '请输入岗位',
            'user_id.required' => '请输入用户',
            'classes_id.required' => '请输入班次',
            'workspace_id.required' => '请输入作业区域',
        ];
    }

}
